#pragma once
#include "LatestMsgNumNotify.h"

class UserLatestMsgNumNotify{
    private:
        int user_id;
        map<string, LatestMsgNumNotify> latest_msg_num_notify_map;

    public:
        UserLatestMsgNumNotify(int user_id);
        UserLatestMsgNumNotify(const json& user_latest_msg_num_notify_json);
        UserLatestMsgNumNotify()=default;

        json serialize() const;
        void unserialize(const json& j);

        void send_latest_msg_num(int socket_fd);
        void add_one_num(string chat_room_id, string time);
        

};